import { number } from "prop-types";

export interface ItemProps {
  source: any;
  estimateSize: number;
}
const Item = (props: ItemProps) => {
  const { source, estimateSize } = props;
  return (
    <div
      className="item-"
      data-id={source.index}
      key={source.index}
      style={{ height: `${estimateSize}px` }}
    >
      <div className="head">
        <span>{source.index}</span>
        <span>{source.name}</span>
      </div>
      <div className="body">
        <span>{source.desc}</span>
      </div>
    </div>
  );
};

export default Item;
